package com.swust.exam.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.swust.exam.pojo.Teachers;

public interface TeachersMapper {
	int deleteByPrimaryKey(Integer teacherId);

    int insert(Teachers record);

    int insertSelective(Teachers record);

    Teachers selectByPrimaryKey(Integer TeacherId);

    int updateByPrimaryKeySelective(Teachers record);

    int updateByPrimaryKey(Teachers record);
    
    int selectByTeacherNumberAndTeacherName(Teachers teachers);
    
    public Teachers login(@Param("teacherNumber") String teacherNumber,@Param("teacherPassword")String teacherPassword);
	
	List<Teachers> teacherlist();

	int password_update(@Param("teacherPassword")String teacherPassword,@Param("teacherNumber") String teachernumber);
}
